﻿package  {
	import flash.media.Sound;
	import flash.media.SoundChannel;
	import flash.events.Event;
	
	public class SoundMan {
		public static var instance:SoundMan;
		
		private var sounds:Object;
		
		private var chanel1:SoundChannel;
		private var chanel2:SoundChannel;
		private var chanel3:SoundChannel;
		
		public function SoundMan() {
			super();
			SoundMan.instance = this;
			this.selfBuild();
		}
		
		private function selfBuild():void
		{
			this.sounds = new Object();
			this.sounds.won = Helper.createClass('sndWin');
			this.chanel1.addEventListener(Event.SOUND_COMPLETE
		}
		
		public function play(song:String, repeats:int = 0, onComplete:Function
		
		
	}
	
}
